public class Plane {

	private static final int DEFAULT_PLANE_ID = 0;
	private static final int DEFAULT_FUEL = 0;
	
	private int ID;
	private int hasFuelFor;
	
	public Plane(int ID){
		this.ID = ID > 0 && ID <= 10000 ? ID : DEFAULT_PLANE_ID;
	}
	
	public Plane(int ID, int hasFuelFor){
		this.ID = ID > 0 && ID <= 10000 ? ID : DEFAULT_PLANE_ID;
		this.hasFuelFor = hasFuelFor > 0 ? hasFuelFor : DEFAULT_FUEL;
	}

	public int getID() {
		return ID;
	}

	public void setID(int iD) {
		this.ID = ID > 0 && ID <= 10000 ? ID : DEFAULT_PLANE_ID;
	}

	public int getHasFuelFor() {
		return hasFuelFor;
	}

	public void setHasFuelFor(int hasFuelFor) {
		this.hasFuelFor = hasFuelFor > 0 ? hasFuelFor : DEFAULT_FUEL;
	}
	
	@Override
	public String toString() {
		return String.format("Plane: %d with fuel for %d", getID(),getHasFuelFor());
	}
	
}
